package com.atguigu.rabbit.producer.test;

import org.junit.jupiter.api.Test;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * @author Taeyang
 * @date 2025/4/7
 */
@SpringBootTest
public class Producer01Simple {

    @Autowired
    private RabbitTemplate rabbitTemplate;

    @Test
    public void test01() {
        // 第一个参数表示的是队列名称
        rabbitTemplate.convertAndSend("simple_queue", "Hello-Rabbit...");
    }
}
